package com.example.demo.behavior.template_method;

/**
 * @Desc:
 * @Author zzz
 * @Date 2021/2/20
 * @Version V1.0
 */
public class ZhangSanTask extends AbstractTask {

    @Override
    void eat() {
        System.out.println("ZhangSan eat egg");
    }

    @Override
    void sleep() {
        System.out.println("ZhangSan sleep at 21:00");
    }

    @Override
    void hitDoudou() {
        System.out.println("ZhangSan Hit Doudou by foot");
    }
}
